import type { PropType } from "vue"

export enum TypeEnum {
	DEFAULT = "default",
	PRIMARY = "primary",
	SUCCESS = "success",
	INFO = "info",
	WARNING = "warning",
	DANGER = "danger",
}

export enum SizeEnum {
	SMALL = "small",
	MIDDLE = "middle",
	LARGE = "large",
}

const props = {
	type: {
		type: String as PropType<TypeEnum>,
		default: TypeEnum.DEFAULT,
	},
	plain: {
		type: Boolean as PropType<boolean>,
		default: false,
	},
	rounded: {
		type: Boolean as PropType<boolean>,
		default: false,
	},
	circle: {
		type: Boolean as PropType<boolean>,
		default: false,
	},
	disabled: {
		type: Boolean as PropType<boolean>,
		default: false,
	},
	loading: {
		type: Boolean as PropType<boolean>,
		default: false,
	},
	icon: {
		type: String as PropType<string>,
	},
	size: {
		type: String as PropType<SizeEnum>,
		default: SizeEnum.MIDDLE,
	},
}

export default props
